<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:71:"C:\wamp\www\singwa\public/../application/index\view\article\detail.html";i:1559701688;s:70:"C:\wamp\www\singwa\public/../application/index\view\public\header.html";i:1559701688;s:70:"C:\wamp\www\singwa\public/../application/index\view\public\footer.html";i:1559701688;}*/ ?>
<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>个人博客</title>
</head>

<link href="__STATIC__/index/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/common.css" />
<link href="logo.ico" rel="shortcut icon" />
<script src="__STATIC__/index/plugin/jquery.min.js"></script>
<script src="__STATIC__/index/plugin/bootstrap/js/bootstrap.min.js"></script>




<body>
<div class="w_header">
  <div class="container">
    <div class="w_header_top">
      <a href="#" class="w_logo"></a>
      <span class="w_header_nav">
					<ul>
						<li><a href="<?php echo url('index/index'); ?>" class="active">首页</a></li>
						<li><a href="">关于</a></li>
						<li><a href="">成长</a></li>
						<li><a href="">学习</a></li>
						<li><a href="">娱乐</a></li>
						<li><a href="">说说</a></li>
						<li><a href="">留言</a></li>
					</ul>
				</span>
      <div class="w_search">
        <div class="w_searchbox">
          <input type="text" placeholder="search" />
          <button>搜索</button>
        </div>
      </div>
    </div>
  </div>
</div>
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/article_detail.css"/>
<div class="w_container">
    <div class="container">
        <div class="row w_main_row">

            <ol class="breadcrumb w_breadcrumb">
                <li><a href="<?php echo url('index/index'); ?>">首页</a></li>
                <li><a href="#">文章</a></li>
                <li class="active"><?php echo $article['title']; ?></li>
                <span class="w_navbar_tip">我们长路漫漫，只因学无止境。</span>
            </ol>

            <div class="col-lg-9 col-md-9 w_main_left">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h2 class="c_titile"><?php echo $article['title']; ?></h2>
                        <p class="box_c"><span class="d_time">发布时间：<?php echo date("Y-m-d H:i", $article['create_time']); ?></span><span>编辑：<a href="mailto:wfyv@qq.com"><?php echo $article['username']; ?></a></span><span>阅读（<?php echo $article['reading']; ?>）</span></p>
                        <ul class="infos">

                            <?php echo htmlspecialchars_decode($article['content']); ?>

                        </ul>

                        <div class="keybq">
                            <p><span>关键字</span>：

                                <?php if(is_array($article['key']) || $article['key'] instanceof \think\Collection): $i = 0; $__LIST__ = $article['key'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <a class="label label-default"><?php echo $vo; ?></a>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </p>
                        </div>



                        <div class="nextinfo">
                            <?php if($article['pre_next']['pre_title'] == ''): ?>
                            <p class="last">上一篇：<a href="#">已经是第一篇了</a></p>
                            <?php else: ?>
                            <p class="last">上一篇：<a href="<?php echo url("article/detail",['id' => $article['pre_next']['pre_id']]); ?>"><?php echo $article['pre_next']['pre_title']; ?></a></p>
                            <?php endif; if($article['pre_next']['next_title'] == ''): ?>
                            <p class="next">下一篇：<a href="#">已经是最后一篇了</a></p>
                            <?php else: ?>
                            <p class="next">下一篇：<a href="<?php echo url("article/detail",['id' => $article['pre_next']['next_id']]); ?>"><?php echo $article['pre_next']['next_title']; ?></a></p>
                            <?php endif; ?>
                        </div>

                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-body">
                        <center><div id="cyReward" role="cylabs" data-use="reward" sid="5eab7e4c363e4cb8bed0efa3604e6b42"></div></center>
                        <!--<div id="cyEmoji" role="cylabs" data-use="emoji" sid="5eab7e4c363e4cb8bed0efa3604e6b42"></div>-->
                        <script type="text/javascript" charset="utf-8" src="https://changyan.itc.cn/js/lib/jquery.js"></script>
                        <script type="text/javascript" charset="utf-8" src="https://changyan.sohu.com/js/changyan.labs.https.js?appid=cyufS7cMV"></script>


                        <!-- 多说评论框 start -->
                        <!-- 多说评论框 end -->
                        <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
                        <script type="text/javascript">
                            var duoshuoQuery = {short_name:"wfyvv"};
                            (function() {
                                var ds = document.createElement('script');
                                ds.type = 'text/javascript';ds.async = true;
                                ds.charset = 'UTF-8';
                                (document.getElementsByTagName('head')[0]
                                    || document.getElementsByTagName('body')[0]).appendChild(ds);
                            })();
                        </script>
                        <!-- 多说公共JS代码 end -->

                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 w_main_right">

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="list-unstyled sidebar">
                            <?php if(is_array($articles) || $articles instanceof \think\Collection): $i = 0; $__LIST__ = $articles;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <li>
                                <a href="<?php echo url('article/detail',['id'=>$vo['id']]); ?>"><?php echo $vo['title']; ?></a>
                            </li>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">友情链接</h3>
                    </div>
                    <div class="panel-body">
                        <div class="newContent">
                            <ul class="list-unstyled sidebar shiplink">
                                <li>
                                    <a href="http://www.thinkphp.cn/" target="_blank">thinkPHP框架</a>
                                </li>
                                <li>
                                    <a href="http://www.h-ui.net/" target="_blank">H-ui</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
</div>
<div class="w_foot">
    <div class="w_foot_copyright">Copyright &copy; 2017-2020, www.l-yh.xyz. All Rights Reserved. <span>|</span>
        <a target="_blank" href="http://www.miitbeian.gov.cn/" rel="nofollow">皖ICP备17002922号</a>
    </div>
</div>
</body>
<script type="text/javascript">
    var $backToTopEle = $('<a href="javascript:void(0)" class="Hui-iconfont toTop" title="返回顶部" alt="返回顶部" style="display:none">^</a>').appendTo($("body")).click(function() {
        $("html, body").animate({ scrollTop: 0 }, 120);
    });
    var backToTopFun = function() {
        var st = $(document).scrollTop(),
            winh = $(window).height();
        (st > 0) ? $backToTopEle.show(): $backToTopEle.hide();
        /*IE6下的定位*/
        if(!window.XMLHttpRequest) {
            $backToTopEle.css("top", st + winh - 166);
        }
    };

    $(function() {
        $(window).on("scroll", backToTopFun);
        backToTopFun();
    });
</script>

</html>